const path              = require('path')
    , merge             = require('webpack-merge')
    , HtmlWebpackPlugin = require('html-webpack-plugin')
    ;

let defaultWebpackConfig = require('../build/webpack.base.conf');

module.exports = merge(defaultWebpackConfig, {
    entry: {
        index: ['./css/base.css', './js/main.js']
    },
    output: {
        filename: '[name].js',
        path: path.resolve(__dirname, '../demo-dist/')
    },
    module: {
        loaders: [{
            test: /\.css$/,
            loaders: [path.resolve(__dirname, '../node_modules/style-loader'), path.resolve(__dirname, '../node_modules/css-loader')]
        }]
    },
    plugins: [
        new HtmlWebpackPlugin({
            template: 'index.html',
        })
    ],
    devtool: '#source-map'
});
